//
//  File.swift
//
//
//  Created by didi on 2022/9/13.
//

import Vapor

public protocol AdminController: AdminListController, AdminDetailController, AdminCreateController, AdminUpdateController, AdminDeleteController {
    func setUpRoutes(_ routes: RoutesBuilder)
}

public extension AdminController {
    func setUpRoutes(_ routes: RoutesBuilder) {
        setUpListRoutes(routes)
        setUpDetailRoutes(routes)
        setUpCreateRoutes(routes)
        setUpUpdateRoutes(routes)
        setUpDeleteRoutes(routes)
    }
}
